package com.practice.car.cardataapp.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * car_price
 *
 * @author
 */
@Data
public class CarPrice implements Serializable {
	@TableId
	private Integer idcarPrice;

	/**
	 * 单位:万元
	 */
	private Double minPrice;

	/**
	 * 单位:万元
	 */
	private Double maxPrice;

	/**
	 * 单位:辆
	 */
	private Integer sale;

	/**
	 * proportion：占比，统一是 double 类型，如果是 33.3%，则 proportion=33.3
	 */
	private Double proportion;

	private static final long serialVersionUID = 1L;

	@Override
	public int hashCode() {
		int result = 17;
		result = 31 * result + minPrice.hashCode();
		result = 31 * result + maxPrice.hashCode();
		return result;
	}
}
